package polymorphic.homework1;

public class Cat extends Animal {
    public Cat() {
    }

    public Cat(String name) {
        super(name);
    }

    public void catchMouse(){
        System.out.println(this.getName()+"正在抓老鼠……");
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"正在吃鱼……");
    }

    @Override
    public void cry() {
        System.out.println(this.getName()+"正在喵喵叫……");
    }
}
